#pragma once
#ifndef __RENDERVIEW_H__
#define __RENDERVIEW_H__

#include "Utility.h"

#include "../util/PreDeclare.h"
#include "../util/D3DCommon.h"

namespace WindGE
{
	class WIND_CORE_API RenderView
	{
	public:
		RenderView() : tex_(nullptr), tex_buff_(nullptr) {}
		virtual ~RenderView() {}

		virtual bool init(RenderDevicePtr renderDevice, TexturePtr tex, Texture2DPtr texBuff) = 0;
		virtual void release() = 0;

		inline TexturePtr   tex()      const { return tex_;			}
		inline Texture2DPtr tex_buff() const { return tex_buff_;	}

	protected:
		TexturePtr		tex_;		//SRV
		Texture2DPtr	tex_buff_;	//Tex2D
	};

}//end namespace WindGE


#endif	//__RENDERVIEW_H__